import React, { useState } from "react";

export default function MulutState() {
  const [count, setCount] = useState(0);
  const [age, setAge] = useState(18);
  const [friends, setFriends] = useState(["kobe", "LiLei"]);

  return (
    <div>
      <h2>当前计数：{count}</h2>
      <h2>我的年龄：{age}</h2>
      <ul>{friends.map((item, index) => {
        return <li>{item}</li>
      })}</ul>
    </div>
  );
}
